export const SETTLE_LABEL_INFO = [
  {
    label: '业务类型',
    value: '',
    key: 'busModel',
  },
  {
    label: '结算类型',
    value: '',
    key: 'typeDesc',
  },
  {
    label: '主结算单号',
    value: '',
    key: 'settleOrderMainCode',
  },
  {
    label: '发起身份',
    value: '',
    key: 'sourceDesc',
  },
  {
    label: '配送商',
    value: '',
    key: 'pCompanyName',
  },
  {
    label: '客户名称',
    value: '',
    key: 'customerName',
  },
  {
    label: '结算日期',
    value: '',
    key: 'settlementDateStr',
  },
  {
    label: '采购含税总金额(元)',
    value: '',
    key: 'totalProdTemplatePriceStr',
  },
  {
    label: '销售含税总金额(元)',
    value: '',
    key: 'totalProdSalePriceStr',
  },
];
export const TABS_ARR = [
  { lab: '产品信息', val: 1 },
  { lab: '开票信息', val: 2 },
  { lab: '发票信息', val: 3 },
];
export const TABS_ARR_RECEIVABLE = [
  { lab: '产品信息', val: 1 },
  { lab: '发票信息', val: 3 },
  { lab: '审核信息', val: 4 },
];
export const PRODUCT_INFO_TABLE_COLUMNS = [
  {
    prop: 'saleCode',
    label: '结算单号',
    width: 200,
  },
  {
    prop: 'supplierName',
    label: '供应商',
    width: 150,
  },
  {
    prop: 'pssProdCode',
    label: '产品编码',
    minWidth: 150,
  },
  {
    prop: 'productLineName',
    label: '产品线',
    width: 150,
  },
  {
    prop: 'pssProdName',
    label: '产品名称',
    width: 150,
  },
  {
    prop: 'pssProdSpec',
    label: '规格',
    width: 150,
  },
  {
    prop: 'pssProdModel',
    label: '型号',
    width: 150,
  },
  {
    prop: 'price',
    label: '单价（元）',
    width: 100,
  },
  {
    prop: 'pssMinUnit',
    label: '单位',
    width: 100,
  },
  {
    prop: 'nums',
    label: '数量',
    width: 150,
  },
  {
    prop: 'totalPrice',
    label: '含税总金额（元）',
    width: 150,
  },
  {
    prop: 'productBatch',
    label: '批号',
    width: 150,
  },
  {
    prop: 'productDateStr',
    label: '生产日期',
    width: 100,
  },
  {
    prop: 'expDateStr',
    label: '有效期至',
    width: 100,
  },
  {
    prop: 'barcode',
    label: '条形码',
    width: 100,
  },
  {
    prop: 'serial',
    label: '序列号',
    width: 100,
  },
  {
    prop: 'pssProdManufacturer',
    label: '生产厂家',
    width: 150,
  },
  {
    prop: 'pssRegistNo',
    label: '产品注册证号',
    width: 150,
  },
];
// 开票信息 应开
export const BILLING_INFO_TABLE_COLUMNS = [
  {
    prop: 'billingApplyCode',
    label: '申请流水号',
    width: 200,
  },
  {
    prop: 'orderCode',
    label: '发票流水号',
    width: 200,
  },
  {
    prop: 'invoiceNumber',
    label: '发票号码',
    width: 150,
  },
  {
    prop: 'settleOrderMainCode',
    label: '结算单号',
    minWidth: 200,
  },
  {
    prop: 'printLineNum',
    label: '发票行号',
    width: 150,
  },
  {
    prop: 'name',
    label: '开票名称',
    width: 150,
  },
  {
    prop: 'applicationCount',
    label: '申请数量',
    width: 150,
  },
  {
    prop: 'itemName',
    label: '产品名称',
    width: 150,
  },
  {
    prop: 'specs',
    label: '规格',
    width: 150,
  },
  {
    prop: 'specs',
    label: '型号',
    width: 150,
  },
  {
    prop: 'unit',
    label: '单位',
    width: 100,
  },

  {
    prop: 'spec',
    label: '开票规格',
    width: 150,
  },
  {
    prop: 'unit',
    label: '开票单位',
    width: 100,
  },
  {
    prop: 'taxRate',
    label: '税率',
    width: 100,
  },
  {
    prop: 'amountExcludingTaxStr',
    label: '不含税总金额（元）',
    width: 150,
  },
  {
    prop: 'amountIncludingTaxStr',
    label: '含税总金额（元）',
    width: 150,
  },
  {
    prop: 'taxAmountStr',
    label: '税额（元）',
    width: 100,
  },
  {
    prop: 'productBatch',
    label: '批号',
    width: 150,
  },
  {
    prop: 'productDateStr',
    label: '生产日期',
    width: 100,
  },
  {
    prop: 'expDateStr',
    label: '有效期至',
    width: 100,
  },
  {
    prop: 'pssProdManufacturer',
    label: '生产厂家',
    width: 150,
  },
  {
    prop: 'pssRegistNo',
    label: '产品注册证号',
    width: 150,
  },
];

// 发票信息 -应开
export const INVOICE_INFO_TABLE_COLUMNS = [
  {
    type: 'index',
    label: '序号',
    width: 56,
  },
  {
    prop: 'settleOrderMainCode',
    label: '主结算单号',
    minWidth: 200,
  },
  {
    prop: 'billingApplyCode',
    label: '申请流水号',
    minWidth: 200,
  },
  {
    prop: 'orderCode',
    label: '发票流水号',
    width: 200,
  },
  {
    prop: 'invoiceNumber',
    label: '发票号码',
    minWidth: 150,
  },
  {
    prop: 'invoiceType',
    label: '发票类型',
    width: 150,
  },
  {
    prop: 'islist',
    label: '是否带清单',
    width: 150,
  },
  {
    prop: 'applyDateStr',
    label: '申请日期',
    width: 100,
  },
  {
    prop: 'amountExcludingTaxStr',
    label: '不含税金额（元）',
    width: 150,
  },
  {
    prop: 'amountIncludingTaxStr',
    label: '含税金额（元）',
    width: 150,
  },
  {
    prop: 'taxRate',
    label: '税率',
    width: 100,
  },
  {
    prop: 'taxAmountStr',
    label: '税额（元）',
    width: 100,
  },
];
// 发票信息  应收
export const INVOICE_RECEIVABLE_INFO_TABLE_COLUMNS = [
  {
    type: 'index',
    label: '序号',
    width: 56,
  },
  {
    prop: 'settleOrderCode',
    label: '结算单号',
    minWidth: 200,
  },
  {
    prop: 'invoiceNumber',
    label: '发票号码',
    minWidth: 200,
  },
  {
    prop: 'invoiceTypeDesc',
    label: '发票类型',
    minWidth: 200,
  },
  {
    prop: 'billingDateStr',
    label: '开票日期',
    minWidth: 200,
  },
  {
    prop: 'billingAmountStr',
    label: '含税金额（元）',
    minWidth: 200,
  },
  {
    prop: 'amountExcludingTaxStr',
    label: '不含税金额（元）',
    minWidth: 200,
  },
  {
    prop: 'invoiceTax',
    label: '税率',
    width: 100,
  },
  {
    prop: 'taxAmountStr',
    label: '税额（元）',
    width: 100,
  },
  {
    prop: 'isListStr',
    label: '是否带清单',
    width: 100,
  },
  {
    prop: 'action',
    label: '操作',
    width: 200,
    fixed: 'right',
  },
];
export const SERIAL_COLUMNS = [
  { width: '60px', type: 'index', label: '序号', align: 'center' },
  {
    minWidth: '150',
    prop: 'serialNumber',
    label: '序列号',
  },
  {
    minWidth: '150',
    prop: 'num',
    label: '数量',
  },
];
export const BARCODE_COLUMNS = [
  {
    minWidth: '150',
    prop: 'mainBarCode',
    label: '主码',
  },
  {
    minWidth: '150',
    prop: 'subBarCode',
    label: '次码',
  },
];
export const EXAMINE_COLUMNS = [
  {
    minWidth: '150',
    prop: 'examineAtStr',
    label: '审核时间',
  },
  {
    minWidth: '150',
    prop: 'companyName',
    label: '审核企业',
  },
  {
    minWidth: '150',
    prop: 'examineBy',
    label: '审核用户',
  },
  {
    minWidth: '150',
    prop: 'statusDesc',
    label: '审核结果',
  },
  {
    minWidth: '150',
    prop: 'remarks',
    label: '审核备注',
  },
];
export const EXAMINE_TABLE = [
  {
    prop: 'salseCode',
    label: '结算单号',
    width: 220,
  },
  {
    prop: 'supplierName',
    label: '供应商',
    width: 180,
  },
  {
    prop: 'status',
    label: '审核状态',
    width: 100,
    formatter: (row) => {
      let status = '';
      if (row.status === 5) {
        status = '审核驳回';
      } else if (row.status === 2) {
        status = '审核通过';
      } else {
        status = '待审核';
      }
      return status;
    },
  },
  {
    prop: 'remarks',
    label: '审核备注',
    minWidth: 100,
  },
  {
    prop: 'action',
    label: '操作',
    width: 150,
    fixed: 'right',
  },
];
